#ifndef __CONTROLLER_H
#define __CONTROLLER_H

#include <stdint.h>

typedef enum {
    DIE = 0,                    // Kill all motors and IR
    MOTOR_CTL,                  // Send control to the motors
    MESSAGE,                    // Message with 15 chars, twitter eat your
                                // heart out
    SENSOR_DATA
} opcode_t;

// Initializes state for the controller
void initialize_controller (void);

// Causes time to advance by one tick in the controller state machine
void controller_tick (uint8_t *raw_command);

#endif  // __CONTROLLER_H
